#include "monster.h"
#include "globals.h"
#include "graphics.h"
#include "random.h"
#include "stats.h"

// Constructor
MonsterClass::MonsterClass(int TMonsterID)
:	FighterClass(TYPE_MONSTER),
	ID(TMonsterID) {

	StatsClass::Instance().GetMonsterStats(TMonsterID, this);
}

// Destructor
MonsterClass::~MonsterClass() {

}

// Updates the monster
void MonsterClass::Update() {

}

// Updates the monster's target based on AI
void MonsterClass::UpdateTarget(const array<FighterClass *> &TFighters) {

	// Get count of fighters
	int Count = TFighters.size();

	// Get a random index
	int RandomIndex = RandomClass::Instance().GenerateRange(0, Count-1);

	Target = TFighters[RandomIndex]->GetSlot();
}

// Returns the monsters command
int MonsterClass::GetCommand() {

	return 0;
}
